package dao;
/**
 * Simple kind of NoCanDoException.
 * @author Jolle
 * @version 1.0.0
 */
public class DBException extends Exception {

	private static final long serialVersionUID = -4032492705654550010L;
	private Exception dbe;

	public DBException() {
		super();
	}

	public DBException(String msg) {
		super(msg);
	}
	
	public DBException(String msg, Exception e) {
		super(msg);
		this.setException(e);
	}

	public void setException(Exception e) {
		this.dbe = e;
	}
	
	public Exception getException() {
		return this.dbe;
	}
}
